﻿using System;

namespace Restaurant.Controls
{
    public class TableEventArgs : EventArgs
    {
        private readonly long _tableId;
        private readonly long? _requestId;
        private readonly DateTime _initialTime;
        private readonly DateTime _lastChangeTime;
        private readonly string _stage;
        private readonly decimal _value;

        public TableEventArgs(long tableId, long? requestId, DateTime initialTime, DateTime lastChangeTime, string stage, decimal value)
        {
            _tableId = tableId;
            _requestId = requestId;
            _initialTime = initialTime;
            _lastChangeTime = lastChangeTime;
            _stage = stage;
            _value = value;
        }

        public long TableId { get { return _tableId; } }
        public long? RequestId { get { return _requestId; } }
        public DateTime InitialTime { get { return _initialTime; } }
        public DateTime LastChangeTime { get { return _lastChangeTime; } }
        public string Stage { get { return _stage; } }
        public decimal Value { get { return _value; } }
    }
}
